create or replace function selectPosterminalProducer(
	out refcursor, inout xml
	)
as
$$
	declare
		ref alias for $1;
		xmlQueryData alias for $2;
	begin
		open ref for
			select posterminalProducer2xml(poer.idPosterminalProducer, poer.namePosterminalProducer)
				from posterminalProducer poer;
		return;
	end;
$$ language plpgsql	stable;